using System;
using System.Collections.Generic;
using UnityEngine;

namespace Entities
{
	public class Mobs
	{
		private static Mobs instance;
		
		private Dictionary<GameObject, Mob> mobs;
	
		private Mobs ()
		{
			mobs = new Dictionary<GameObject, Mob>();
		}
	
		public static Mobs Instance {
			get {
				if (instance == null) {
					instance = new Mobs ();
				}
				return instance;
			}
		}
		
		public void addMob(Mob mob){
			mobs.Add(mob.getGameObject(), mob);	
		}
		
		public Mob getMob(GameObject obj){
			return mobs[obj];	
		}
	}
	
}

